//
//  LifeView.m
//  天气预报
//
//  Created by mac on 16/1/21.
//  Copyright © 2016年 YF_S. All rights reserved.
//

#import "LifeView.h"

@implementation LifeView

-(void)setInfo:(NSDictionary *)info{

    _info = info;
    
    //空调
    NSArray *kongtiao = [_info objectForKey:@"kongtiao"];

    _kongtiao.text = [NSString stringWithFormat:@"空调:%@%@",kongtiao[0],kongtiao[1]];
    
    
    NSArray *yundong = [_info objectForKey:@"yundong"];
    
    _yundong.text = [NSString stringWithFormat:@"运动:%@%@",yundong[0],yundong[1]];
    
    NSArray *ziwaixian = [_info objectForKey:@"ziwaixian"];
    
    _ziwaixian.text = [NSString stringWithFormat:@"紫外线:%@%@",ziwaixian[0],ziwaixian[1]];
    
    NSArray *ganmao = [_info objectForKey:@"ganmao"];
    
    _ganmao.text = [NSString stringWithFormat:@"感冒:%@%@",ganmao[0],ganmao[1]];
    
    NSArray *xiche = [_info objectForKey:@"xiche"];
    
    _xiche.text = [NSString stringWithFormat:@"洗车:%@%@",xiche[0],xiche[1]];
    
    NSArray *wuran = [_info objectForKey:@"wuran"];
    
    _wuran.text = [NSString stringWithFormat:@"污染:%@%@",wuran[0],wuran[1]];
    
    NSArray *chuanyi = [_info objectForKey:@"chuanyi"];
    
    _chuanyi.text = [NSString stringWithFormat:@"穿衣:%@%@",chuanyi[0],chuanyi[1]];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
